package com.test.order;

import com.test.goods.Goods;
import com.tzy.spi.annotation.Inject;
import com.tzy.spi.lifecycle.AfterInject;

import java.util.List;

public class AliOrder implements Order , AfterInject {

    private Goods goods;

    public void todo() {
        System.out.println(goods.get()+"    ali order");
    }

    @Override
    public String get() {
        return "ali";
    }

    @Inject("ali")
    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public void afterInjectToDo() {
        System.out.println("after");
    }
}
